package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
/**
 * 购物车对象 biz_shopping_car
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-07-02
 */
@Data
public class ShoppingCar extends BaseEntity<ShoppingCar>
{
    private static final long serialVersionUID = 1L;


    /** 分类ID  */
    @Excel(name = "分类ID ")
    private String typeId;

    /** 分类名称  */
    @Excel(name = "分类名称 ")
    private String typeName;

    /** 原价 */
    private BigDecimal price;

    /** 产品ID */
    private String productId;
    /** skuId*/
    private String productSkuId;

    /** 数量 */
    private Integer count;

    /** 产品标题 */
    private String title;

    /** 条码 */
    private String upc;

    /** 规格 */
    private String unit;

    /** 小计 */
    private BigDecimal amount;

    /** 产品名称 */
    private String productName;

    private String productFuName;
    private String brand;

    /** 折后价 */
    private BigDecimal salePrice;

    /** 用户信息ID */
    private String userInfoId;

    /** 排序 */
    private Integer sort;

    /** 状态（0购物车 1直接订单） */
    private String status;

    /**图片**/
    private String image;

    private String[] idsArr;

    private String ids;

    @Excel(name = "产品类型 0 洗护 1 商城")
    private Integer type;



    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setCount(Integer count) 
    {
        this.count = count;
    }

    public Integer getCount() 
    {
        return count;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setUpc(String upc) 
    {
        this.upc = upc;
    }

    public String getUpc() 
    {
        return upc;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }

    public void setUserInfoId(String userInfoId) 
    {
        this.userInfoId = userInfoId;
    }

    public String getUserInfoId() 
    {
        return userInfoId;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("price", getPrice())
            .append("productId", getProductId())
            .append("count", getCount())
            .append("title", getTitle())
            .append("upc", getUpc())
            .append("unit", getUnit())
            .append("amount", getAmount())
            .append("productName", getProductName())
            .append("salePrice", getSalePrice())
            .append("userInfoId", getUserInfoId())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
